package com.dormitory.service;

import com.dormitory.po.PageInfo;
import com.dormitory.po.Student;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 用户Service层接口
 */
@Transactional
public interface StudentService {

    //分页查询
    public PageInfo<Student> findPageInfo(String s_name, Integer s_studentid, Integer s_classid,
                                          String s_classname, Integer pageIndex, Integer pageSize);

    public int deleteStudent(Integer s_id);   //通过id删除学生信息

    public int addStudent(Student student);   //添加学生信息

    public int updateStudent(Student student); //修改学生信息

    public Student findStudentById(Integer s_id);

    public List<Student> getAll();

}
